package com.ytt.core.service.entity.major;

import com.ytt.core.service.entity.AbstractBaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * 专业
 */
@Entity
@Table(name = "school_major")
@Getter
@Setter
public class Major extends AbstractBaseEntity {
    /**
     * 专业名称, 要求唯一性
     */
    @Column(name = "name", length = 200, nullable = false, unique = true)
    private String name;

    /**
     * 科类
     */
    @Column(name = "families", length = 200, nullable = false)
    private String families;


}
